﻿using System;
using System.Collections.Generic;
using Algoritmia.DataStructures.Trees;

namespace Algoritmia.Problems.Traversals
{
    public interface ITreeTraverser<TNode,TResult>
    {
        IEnumerable<TResult> Traverse(IRootedTree<TNode> tree,
                                      Func<IRootedTree<TNode>, TResult> visitor = null);
    }
}
